package com.tjmc.tiomscore.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TranPtnBusiEsiExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TranPtnBusiEsiExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andServicermuidIsNull() {
            addCriterion("servicermuid is null");
            return (Criteria) this;
        }

        public Criteria andServicermuidIsNotNull() {
            addCriterion("servicermuid is not null");
            return (Criteria) this;
        }

        public Criteria andServicermuidEqualTo(String value) {
            addCriterion("servicermuid =", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotEqualTo(String value) {
            addCriterion("servicermuid <>", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidGreaterThan(String value) {
            addCriterion("servicermuid >", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidGreaterThanOrEqualTo(String value) {
            addCriterion("servicermuid >=", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidLessThan(String value) {
            addCriterion("servicermuid <", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidLessThanOrEqualTo(String value) {
            addCriterion("servicermuid <=", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidLike(String value) {
            addCriterion("servicermuid like", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotLike(String value) {
            addCriterion("servicermuid not like", value, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidIn(List<String> values) {
            addCriterion("servicermuid in", values, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotIn(List<String> values) {
            addCriterion("servicermuid not in", values, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidBetween(String value1, String value2) {
            addCriterion("servicermuid between", value1, value2, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andServicermuidNotBetween(String value1, String value2) {
            addCriterion("servicermuid not between", value1, value2, "servicermuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidIsNull() {
            addCriterion("pwrmuid is null");
            return (Criteria) this;
        }

        public Criteria andPwrmuidIsNotNull() {
            addCriterion("pwrmuid is not null");
            return (Criteria) this;
        }

        public Criteria andPwrmuidEqualTo(String value) {
            addCriterion("pwrmuid =", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidNotEqualTo(String value) {
            addCriterion("pwrmuid <>", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidGreaterThan(String value) {
            addCriterion("pwrmuid >", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidGreaterThanOrEqualTo(String value) {
            addCriterion("pwrmuid >=", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidLessThan(String value) {
            addCriterion("pwrmuid <", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidLessThanOrEqualTo(String value) {
            addCriterion("pwrmuid <=", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidLike(String value) {
            addCriterion("pwrmuid like", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidNotLike(String value) {
            addCriterion("pwrmuid not like", value, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidIn(List<String> values) {
            addCriterion("pwrmuid in", values, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidNotIn(List<String> values) {
            addCriterion("pwrmuid not in", values, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidBetween(String value1, String value2) {
            addCriterion("pwrmuid between", value1, value2, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andPwrmuidNotBetween(String value1, String value2) {
            addCriterion("pwrmuid not between", value1, value2, "pwrmuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidIsNull() {
            addCriterion("aendnermuid is null");
            return (Criteria) this;
        }

        public Criteria andAendnermuidIsNotNull() {
            addCriterion("aendnermuid is not null");
            return (Criteria) this;
        }

        public Criteria andAendnermuidEqualTo(String value) {
            addCriterion("aendnermuid =", value, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidNotEqualTo(String value) {
            addCriterion("aendnermuid <>", value, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidGreaterThan(String value) {
            addCriterion("aendnermuid >", value, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidGreaterThanOrEqualTo(String value) {
            addCriterion("aendnermuid >=", value, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidLessThan(String value) {
            addCriterion("aendnermuid <", value, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidLessThanOrEqualTo(String value) {
            addCriterion("aendnermuid <=", value, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidLike(String value) {
            addCriterion("aendnermuid like", value, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidNotLike(String value) {
            addCriterion("aendnermuid not like", value, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidIn(List<String> values) {
            addCriterion("aendnermuid in", values, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidNotIn(List<String> values) {
            addCriterion("aendnermuid not in", values, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidBetween(String value1, String value2) {
            addCriterion("aendnermuid between", value1, value2, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andAendnermuidNotBetween(String value1, String value2) {
            addCriterion("aendnermuid not between", value1, value2, "aendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidIsNull() {
            addCriterion("zendnermuid is null");
            return (Criteria) this;
        }

        public Criteria andZendnermuidIsNotNull() {
            addCriterion("zendnermuid is not null");
            return (Criteria) this;
        }

        public Criteria andZendnermuidEqualTo(String value) {
            addCriterion("zendnermuid =", value, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidNotEqualTo(String value) {
            addCriterion("zendnermuid <>", value, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidGreaterThan(String value) {
            addCriterion("zendnermuid >", value, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidGreaterThanOrEqualTo(String value) {
            addCriterion("zendnermuid >=", value, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidLessThan(String value) {
            addCriterion("zendnermuid <", value, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidLessThanOrEqualTo(String value) {
            addCriterion("zendnermuid <=", value, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidLike(String value) {
            addCriterion("zendnermuid like", value, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidNotLike(String value) {
            addCriterion("zendnermuid not like", value, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidIn(List<String> values) {
            addCriterion("zendnermuid in", values, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidNotIn(List<String> values) {
            addCriterion("zendnermuid not in", values, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidBetween(String value1, String value2) {
            addCriterion("zendnermuid between", value1, value2, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andZendnermuidNotBetween(String value1, String value2) {
            addCriterion("zendnermuid not between", value1, value2, "zendnermuid");
            return (Criteria) this;
        }

        public Criteria andEmsnameIsNull() {
            addCriterion("emsname is null");
            return (Criteria) this;
        }

        public Criteria andEmsnameIsNotNull() {
            addCriterion("emsname is not null");
            return (Criteria) this;
        }

        public Criteria andEmsnameEqualTo(String value) {
            addCriterion("emsname =", value, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameNotEqualTo(String value) {
            addCriterion("emsname <>", value, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameGreaterThan(String value) {
            addCriterion("emsname >", value, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameGreaterThanOrEqualTo(String value) {
            addCriterion("emsname >=", value, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameLessThan(String value) {
            addCriterion("emsname <", value, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameLessThanOrEqualTo(String value) {
            addCriterion("emsname <=", value, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameLike(String value) {
            addCriterion("emsname like", value, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameNotLike(String value) {
            addCriterion("emsname not like", value, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameIn(List<String> values) {
            addCriterion("emsname in", values, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameNotIn(List<String> values) {
            addCriterion("emsname not in", values, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameBetween(String value1, String value2) {
            addCriterion("emsname between", value1, value2, "emsname");
            return (Criteria) this;
        }

        public Criteria andEmsnameNotBetween(String value1, String value2) {
            addCriterion("emsname not between", value1, value2, "emsname");
            return (Criteria) this;
        }

        public Criteria andRoleIsNull() {
            addCriterion("role is null");
            return (Criteria) this;
        }

        public Criteria andRoleIsNotNull() {
            addCriterion("role is not null");
            return (Criteria) this;
        }

        public Criteria andRoleEqualTo(String value) {
            addCriterion("role =", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleNotEqualTo(String value) {
            addCriterion("role <>", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleGreaterThan(String value) {
            addCriterion("role >", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleGreaterThanOrEqualTo(String value) {
            addCriterion("role >=", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleLessThan(String value) {
            addCriterion("role <", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleLessThanOrEqualTo(String value) {
            addCriterion("role <=", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleLike(String value) {
            addCriterion("role like", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleNotLike(String value) {
            addCriterion("role not like", value, "role");
            return (Criteria) this;
        }

        public Criteria andRoleIn(List<String> values) {
            addCriterion("role in", values, "role");
            return (Criteria) this;
        }

        public Criteria andRoleNotIn(List<String> values) {
            addCriterion("role not in", values, "role");
            return (Criteria) this;
        }

        public Criteria andRoleBetween(String value1, String value2) {
            addCriterion("role between", value1, value2, "role");
            return (Criteria) this;
        }

        public Criteria andRoleNotBetween(String value1, String value2) {
            addCriterion("role not between", value1, value2, "role");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}